package com.zyw.teacher.login.service.impl;

import com.zyw.teacher.login.entity.Role;
import com.zyw.teacher.login.mapper.RoleMapper;
import com.zyw.teacher.login.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Description:
 * @Author: zyw
 * @Date: 2018/12/14
 */
public class RoleServiceImpl implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> getAllRole() {
        return roleMapper.getAllRole();
    }

    @Override
    public List<Role> queryByUrl(String url) {
        return roleMapper.queryByUrl(url);
    }
}
